* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

ul {
	list-style: none;
}
a {
	text-decoration: none;
}
:root {
	--totalWid: 100%;
}

html,
body,
main {
	/* 2.var(--变量名)：使用css变量 */
	width: var(--totalWid);
}
main {
	overflow-y: auto;
}
.container {
	margin: 0 auto;
	/* 3.calc()运算函数，注意：运算符前后必须加空格 */
	width: calc(var(--totalWid) - 20px);
}
/* banner区 */
#banner {
	width: 100%;
	height: 215px;
}
#banner .swiper .swiper-wrapper div {
	width: 100%;
	height: 215px;
}
#banner .swiper .swiper-wrapper .swiper1 {
	background: url(../../assets/images/index-swiper-bg1.jpg) no-repeat center;
	background-size: cover;
}
#banner .swiper .swiper-wrapper .swiper2 {
	background: url(../../assets/images/index-swiper-bg2.jpg) no-repeat center;
	background-size: cover;
}

#banner .swiper .swiper-wrapper .swiper3 {
	background: url(../../assets/images/index-swiper-bg3.jpg) no-repeat center;
	background-size: cover;
}
/* 主体区 */
.mainmenu {
	padding: 10px;
}
.menu {
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
}
.ranking {
	width: 32%;
	height: 100px;
	background-color: #54afda;
	background-image: url(../../assets/images/index-card-rank.png);
	background-size: 70px;
	background-repeat: no-repeat;
	background-position: 0 20px;
	margin-right: 15px;
	border-radius: 10px;
}
.ranking p {
	padding: 10px 0 0 10px;
	color: #004e88;
	font-weight: bold;
}
.ranking h1 {
	font-size: 30px;
	color: white;
	padding-left: 35px;
}
.checkin {
	width: 63%;
	height: 100px;
	background-color: #9fd9f8;
	border-radius: 10px;
	background-image: url(../../assets/images/index-card-sum.png);
	background-size: 70px;
	background-repeat: no-repeat;
	background-position: 10px 20px;
}
.checkin p {
	padding: 10px 0 0 10px;
	color: #004e88;
	font-weight: bold;
}
.checkin div {
	width: 70px;
	height: 30px;
	line-height: 30px;
	border-radius: 20px;
	font-size: 10px;
	color: #fff;
	text-align: center;
	margin-top: 20px;
	margin-left: 140px;
	background-color: #89bd50;
}
.data {
	width: 42%;
	height: 80px;
	margin: 10px 0;
	margin-right: 15px;
	border-radius: 10px;
	background: url(../../assets/images/index-card-data.png) center no-repeat;
	background-size: cover;
}
.data p {
	padding: 10px 0 0 10px;
	color: white;
	font-weight: bold;
}
.badge {
	width: 53%;
	height: 80px;
	background-color: #9dbde3;
	margin: 10px 0;
	border-radius: 10px;
	background-image: url(../../assets/images/index-card-badge.png);
	background-size: 60px;
	background-repeat: no-repeat;
	background-position: 10px 20px;
	color: #004e73;
	font-weight: bold;
}
.badge p {
	padding: 10px 0 0 10px;
	color: #004e88;
	font-weight: bold;
}
.figure {
	margin-top: -20px;
	margin-left: 120px;
}
.figure :first-child {
	font-size: 50px;
}
.course {
	width: 100%;
	height: 80px;
	background-color: antiquewhite;
	margin-bottom: 10px;
	border-radius: 10px;
	background-image: url(../../assets/images/index-swiper-bg2.jpg);
	background-repeat: no-repeat;
	background-size: 100% 160px;
}
.course p {
	padding: 10px 0 0 10px;
	color: white;
	font-weight: bold;
}
.jogging {
	width: 100%;
	height: 80px;
	background-color: antiquewhite;
	border-radius: 10px;
	background-image: url(../../assets/images/index-card-run.png);
	background-repeat: no-repeat;
	background-size: 100% 80px;
}
.jogging p {
	padding: 10px 0 0 10px;
	color: white;
	font-weight: bold;
}
/* 底部导航区 */
nav {
	width: 100%;
	height: 77px;
	display: flex;
	justify-content: space-around;
	text-align: center;
	border-top: 1px solid #f0efef;
	position: fixed;
	bottom: 0;
	align-items: center;
	background-color: white;
}
nav a {
	display: block;
	color: #8a8a8a;
	margin-top: 5px;
}
nav .iconfont {
	font-size: 30px;
	color: #8a8a8a;
}

nav div:hover span {
	color: #4294ff;
}
nav div:hover a {
	color: #4294ff;
}
.active .iconfont {
	color: #4294ff;
}
.active a {
	color: #4294ff;
}
